home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-21 / autoscri.tec < prev    next >
Text File  |  1991-07-29  |  7KB  |  160 lines

  1. ID:SC Startup Scripts to Automate DESQview
  2. Quarterdeck Technical Note #153
  3. by Bob Perry
  4.  
  5. HOW TO AUTOMATE DESQview - STARTUP SCRIPTS
  6.  
  7. Q: How can I automatically startup DESQview?
  8. Q: How can I configure DESQview to automatically startup all my
  9.      applications?
  10. Q: How can I configure DESQview so that when I open a window it
  11.      automatically loads the right file, or otherwise does
  12.      things in that application for me?
  13. Q: How can I integrate all of the above?
  14.  
  15.  
  16. First, you must have a version of DESQview which is 2.0 or 
  17. greater.  Assuming you have this, proceed as follows:
  18.  
  19. A fully automated DESQview involves three levels of automation:
  20.      1-Modification of your AUTOEXEC.BAT,
  21.      2-Creation of an auto startup script on the DESQview menu,
  22.      3-Creation of startup scripts for your applications.
  23.  
  24. Step One - Loading DESQview upon system boot up.
  25.  
  26. By modifying your AUTOEXEC.BAT file, you can boot right
  27. into DESQview. This is our recommended procedure.  To do so, you
  28. only need to add two simple lines to this file:
  29.  
  30.      cd\dv
  31.         dv
  32.  
  33. The first line changes directories to the DESQview directory, and
  34. the
  35. second line executes the program. Users who invoke DESQview with
  36. xdv
  37. would have xdv as the second line.  These should be the LAST lines
  38. of
  39. your AUTOEXEC.BAT file.
  40.  
  41. Step Two - Creating a startup script on the DESQview menu.
  42.      
  43. As described on page 89 of the DESQview version 2 manual,
  44. the special technique distinguishing a STARTUP script is the "!"
  45. exclamation point key.  This is done as follows:
  46.  
  47.      -Begin at the original DESQview Open Window menu, with no 
  48.         other programs open or running.
  49.  
  50.      -Hold down the Shift and tap your {DESQ} key, to enter 
  51.         the DESQview Learn menu.
  52.  
  53.      -At first menu, type "=" to Start a Script.
  54.  
  55.      -At the prompt "Press the key you want to redefine", 
  56.         choose a key you want to define for the script.  If you
  57.         don't want to "use up" any keys, try HOLDING DOWN the Alt 
  58.         key and then pressing a 3-digit number on the numeric 
  59.         keypad (try 2 5 0).  This will result in the "key" being 
  60.         {250}, a key you will be unlikely to type.
  61.  
  62.      -The next menu asks you to name your script.  Begin the 
  63.         name of the script with the exclamation point character 
  64.         "!".  The exclamation point as the first character in 
  65.         the script name is the key which makes it an auto-start 
  66.         script.
  67.  
  68.      -FROM THIS POINT ONWARD, DESQview WILL BE "REMEMBERING" 
  69.         EACH KEYSTROKE YOU MAKE.
  70.  
  71. HINT: As with any DESQview script, use only the alpha-numeric 
  72. keyboard keys when you select from menus.  Do not use cursor keys 
  73. or try to teach your mouse a script!  Cursor keys are not as 
  74. reliable when selecting from menus and mouse movements, and clicks
  75. are not keystrokes and therefore cannot be learned in a "Keyboard 
  76. macro."
  77.  
  78.      -A typical pattern of keystrokes might go like this:
  79.                 {DESQ} O W P   (for Open Word Processor)
  80.                 {DESQ} O L 2   (for Open Lotus 1-2-3, release 2)
  81.                 {DESQ} O D 1   (for Open DOS (128K) window)
  82.                 {DESQ} O D D   (for Open DESQview Datebook)
  83.           etc.
  84.  
  85.         -When you've opened all your needed applications in the
  86.         right sequence, hit Shift-{DESQ} again, and hit
  87.         the "-" key to finish the script.
  88.  
  89.         -Now in order to have the script available on the next 
  90.         time you start DESQview, you must save it.  REMEMBER, 
  91.         scripts must be saved at the same level of DESQview as 
  92.         they were begun, so if this is the main DESQview auto-
  93.         start script, bring up the DESQview menu, hit Shift-Alt 
  94.         to bring up the Learn menu, hit "S" for Save and save to 
  95.         the default DESQVIEW.DVS file.
  96.  
  97. Now, when your AUTOEXEC.BAT file boots you directly into DESQview,
  98. DESQview will automatically launch your applications in exactly
  99. the order you want them opened.  
  100.  
  101. Note that if you have any startup scripts for your applications,
  102. your DESQview menu startup script will launch these as well!  See
  103. the next section on how to write such an application startup 
  104. script.
  105.  
  106. Step 3 - Writing a startup script for your applications.
  107.  
  108. With DESQview's powerful Learn feature you can "teach" any 
  109. application to perform the same series of keystrokes each and 
  110. every time that DESQview window is opened. This is particularly 
  111. useful for typing headers, loading a file, displaying application 
  112. directories, configuration alterations, and other routine 
  113. keystrokes that are repeated by the user each time the 
  114. application window is opened.
  115.  
  116.      -Begin by opening the application program in DESQview.
  117.  
  118.      -Depress the Shift and tap the {DESQ} key to enter the 
  119.         Learn menu.
  120.  
  121.      -At the first menu, choose "=" to Start Learning.
  122.  
  123.      -When the prompt "Press the key you want to redefine"
  124.      appears, select some obscure combination of keys that
  125.      you would never hit accidently.  Better yet, choose a
  126.      key that doesn't even exist, such as holding down the
  127.      right Alt key and typing 250 on your numeric keypad.
  128.  
  129.      -AT THE PROMPT FOR "SCRIPT NAME" BEGIN THE NAME WITH
  130.      THE "!" EXCLAMATION POINT CHARACTER.  As explained on
  131.      page 89 of the DESQview manual, this "!" exclamation
  132.      point triggers the automatic startup execution of all
  133.      the keystrokes that will follow. 
  134.  
  135. AS ABOVE, AVOID THE USE OF CURSOR KEYS, AND NO MOUSE BUTTONS
  136. PLEASE!
  137.  
  138.      -After performing the series of keystrokes that you
  139.      wish to use to automatically execute each time that
  140.      DESQview window is opened, you must again depress the
  141.      Shift and tap the {DESQ} key, and select the "-"
  142.      to Finish the Script.
  143.  
  144.         -Since the script was begun in the application window, 
  145.         bring up the Learn menu and save the script.
  146.  
  147. Now your system is fully automated using the DESQview automatic
  148. startup macro or Learn features described above.  Your machine
  149. will boot up and start DESQview for you automatically.  Then
  150. DESQview will launch your favorite applications for you with
  151. your DESQview menu startup script.  Finally, each application
  152. you open will perform the keystrokes that you have
  153. dictated in your application startup script.  By the time you
  154. pour a cup of java and sit down at the keyboard, your machine
  155. will be custom-tuned to your specifications and ready for your
  156. work.
  157.  
  158.         Copyright (C) 1991 by Quarterdeck Office Systems
  159.              * * *   E N D   O F   F I L E    * * * 
  160.